﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Tradier.Models
{
    public class UserBalanceModel
    {
        public string AccountNumber { get; set; }
        public string AccountType { get; set; }
        public float ClosePl { get; set; }
        public float CurrentRequirement { get; set; }
        public float Equity { get; set; }
        public float LongMarketValue { get; set; }
        public float MarketValue { get; set; }
        public float OpenPl { get; set; }
        public float OptionLongValue { get; set; }
        public float OptionRequirement { get; set; }
        public float OptionShortValue { get; set; }
        public int PendingOrdersCount { get; set; }
        public float ShortMarketValue { get; set; }
        public float StockLongValue { get; set; }
        public float TotalCash { get; set; }
        public float TotalEquity { get; set; }
        public float UnclearedFunds { get; set; }
        public MarginModel Margin { get; set; }
        public PDTModel Pdt { get; set; }
    }

    public class CashModel
    {
        public float CashAvailable { get; set; }
        public int Sweep { get; set; }
        public float UnsettledFunds { get; set; }
    }

    public class MarginModel
    {
        public int FedCall { get; set; }
        public int MaintenanceCall { get; set; }
        public float OptionBuyingPower { get; set; }
        public float StockBuyingPower { get; set; }
        public int StockShortValue { get; set; }
        public int Sweep { get; set; }
    }

    public class PDTModel
    {
        public float DayTradeBuyingPower { get; set; }
        public int FedCall { get; set; }
        public int MaintenanceCall { get; set; }
        public float OptionBuyingPower { get; set; }
        public float StockBuyingPower { get; set; }
        public int StockShortValue { get; set; }
    }
}